package com.guiji.quartz.vo;

import cn.hutool.core.util.ObjectUtil;
import io.swagger.models.auth.In;

/**
 * @program: cms-vue-plus
 * @description:
 * @author: gaoX
 * @create: 2021-10-11 13:45
 **/
public class CountVo {
	String newsCategory;
	Integer downloadSuccess;
	Integer pushSuccess;
	Integer pushFail;
	Integer shangxian;
	String details;

	public String getDetails() {
		return details;
	}

	public void setDetails(String details) {
		this.details = details;
	}

	public CountVo(String newsCategory, Integer downloadSuccess, Integer pushSuccess, Integer pushFail, Integer shangxian) {
		this.newsCategory = newsCategory;
		this.downloadSuccess = downloadSuccess;
		this.pushSuccess = pushSuccess;
		this.pushFail = pushFail;
		this.shangxian = shangxian;
	}

	public String getNewsCategory() {
		return newsCategory;
	}

	public void setNewsCategory(String newsCategory) {
		this.newsCategory = newsCategory;
	}

	public Integer getDownloadSuccess() {
		if(ObjectUtil.isEmpty(downloadSuccess)||ObjectUtil.isNull(downloadSuccess)){
			return 0;
		}
		return downloadSuccess;
	}

	public void setDownloadSuccess(Integer downloadSuccess) {
		this.downloadSuccess = downloadSuccess;
	}

	public Integer getPushSuccess() {
		if(ObjectUtil.isEmpty(pushSuccess)||ObjectUtil.isNull(pushSuccess)){
			return 0;
		}
		return pushSuccess;
	}

	public void setPushSuccess(Integer pushSuccess) {
		this.pushSuccess = pushSuccess;
	}

	public Integer getPushFail() {
		if(ObjectUtil.isEmpty(pushFail)||ObjectUtil.isNull(pushFail)){
			return 0;
		}
		return pushFail;
	}

	public void setPushFail(Integer pushFail) {
		this.pushFail = pushFail;
	}

	public Integer getShangxian() {
		if(ObjectUtil.isEmpty(shangxian)||ObjectUtil.isNull(shangxian)){
			return 0;
		}
		return shangxian;
	}

	public void setShangxian(Integer shangxian) {
		this.shangxian = shangxian;
	}
}
